package org.dingyom.gift.clients;

import org.dingyom.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "GIFT-SYSMANAGE",fallbackFactory = EmloyeeClientFallbackFactory.class)
public interface EmployeeClient {

        @GetMapping("/employee/loginUser/{loginId}")
        public AjaxResult getByLoginId(@PathVariable("loginId") Long loginId);
}
